import request from '@/utils/request'

export function getAgentProjectList(data) {
  return request({
    url: 'project/agent/list',
    method: 'post',
    data
  })
}

export function verifyAgentProject(data) {
  const { id, money, status } = data
  return request({
    url: 'project/agent/approve',
    method: 'post',
    params: { id, money, status }
  })
}

export function settleAgentProject(id) {
  return request({
    url: 'project/agent/done',
    method: 'post',
    params: { id }
  })
}
